-- GENERATED SPELL FOR [Narillasanz] --


function spell0_2447(pUnit, Event) --@Flame Breath,n/a--
pUnit:FullCastSpellOnTarget(9573,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2447', 2000, 1)
end

function spell1_2447(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(8362,pUnit)
pUnit:RegisterEvent('Sorts_2447', 22000, 1)
end

function Sorts_2447(pUnit, Event)
local choix_sorts_2447 = math.random(0, 1)
if choix_sorts_2447 == 0 then
pUnit:RegisterEvent('spell0_2447', 1, 1)
end
if choix_sorts_2447 == 1 then
pUnit:RegisterEvent('spell1_2447', 1, 1)
end
end

function mob2447_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2447', math.random(1500, 3000), 1)
end

function mob2447_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2447_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2447_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2447, 1, 'mob2447_Action')
RegisterUnitEvent(2447, 2, 'mob2447_Leave')
RegisterUnitEvent(2447, 3, 'mob2447_Kill')
RegisterUnitEvent(2447, 4, 'mob2447_Die')
